package pattern.behavioral.memento.simple;

import java.util.Date;

/**
 * @author: chaoyang.ren  
 * @date:Jun 16, 2017  
 * @time:3:30:42 PM   
 * @email:chaoyang.ren@foxmail.com  
 * @version: 1.0
 */
public class HeroState implements Cloneable{
	/**
     * 英雄生命值
     */
    private int healthPoint;
    
    /**
     * 英雄魔法值
     */
    private int magicPoint;
    
    /**
     * 状态保存时间
     */
    private Date stateDate;

    

    public int getHealthPoint() {
		return healthPoint;
	}

	public void setHealthPoint(int healthPoint) {
		this.healthPoint = healthPoint;
	}

	public int getMagicPoint() {
		return magicPoint;
	}

	public void setMagicPoint(int magicPoint) {
		this.magicPoint = magicPoint;
	}

	public Date getStateDate() {
        return stateDate;
    }

    public void setStateDate(Date stateDate) {
        this.stateDate = stateDate;
    }
    
    public HeroState clone(){
        try {
            HeroState clone = (HeroState) super.clone();
			return clone;
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }
}

